import { App ,VNode} from "vue"
// export const zhuce = (app: App) => {
//     app.directive('clipboard', {
//         mounted: function (el: any, binding: any, vnode: any, oldVnode: any) {

//         },
//         unmounted: function (el: any, binding: any, vnode: any, oldVnode: any) {

//         }
//     })
// }

export const zhucefocus = (app:App)=>{
    
    app.directive('myfocus', {
        mounted(el: HTMLElement, binding: any, vnode: VNode, oldVnode:any){
            console.log("挂载生命周期，指令focus",el,vnode)
        },
        unmounted(el: HTMLElement, binding: any, vnode: VNode, oldVnode:any){
            console.log("卸载生命周期，指令focus",el,vnode)
        },
    })
}